package com.feilx.changgou.goods.service.impl;

import com.changgou.bean.PageVo;
import com.changgou.bean.Query;
import com.changgou.bean.QueryCondition;
import com.changgou.pojo.TbSpuEntity;
import com.feilx.changgou.goods.dao.TbSpuDao;
import com.feilx.changgou.goods.service.TbSpuService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;



@Service("tbSpuService")
public class TbSpuServiceImpl extends ServiceImpl<TbSpuDao, TbSpuEntity> implements TbSpuService {

    @Override
    public PageVo queryPage(QueryCondition params) {
        IPage<TbSpuEntity> page = this.page(
                new Query<TbSpuEntity>().getPage(params),
                new QueryWrapper<TbSpuEntity>()
        );

        return new PageVo(page);
    }

}
